package com.ganbo.ms.java8;

/**
 * @author ganbo
 * @date 2022/11/13 21:32
 */
public class Jdk8InterfaceTest {

    public void helloworld(Jdk8Interface jdk8Interface) {
        System.out.println("before..");
        jdk8Interface.add();
        System.out.println("after...");
    }


    public static void main(String[] args) {
        Jdk8InterfaceTest jdk8InterfaceTest = new Jdk8InterfaceTest();
        jdk8InterfaceTest.helloworld(Jdk8Interface::get);


    }
}
